#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_scripts.dpatch by  <Mazen Neifer <mazen.neifer@supaero.org>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: This patch adds launcher line to scripts header to avoid linitian
## DP: warnings.

@DPATCH@
Index: images/laz_images.sh
===================================================================
--- lazarus-0.9.26.1-0~/images/laz_images.sh	
+++ lazarus-0.9.26.1-0/images/laz_images.sh	
@@ -1 +1,2 @@
+#!/bin/sh
 ../tools/lazres laz_images.lrs @laz_images_list.txt
Index: images/bookmark.sh
===================================================================
--- lazarus-0.9.26.1-0~/images/bookmark.sh	
+++ lazarus-0.9.26.1-0/images/bookmark.sh	
@@ -1 +1,2 @@
+#!/bin/sh
 ../tools/lazres bookmark.lrs @bookmark_list.txt
Index: test/testresult-db/mailtestresults.sh
===================================================================
--- lazarus-0.9.26.1-0~/test/testresult-db/mailtestresults.sh
+++ lazarus-0.9.26.1-0/test/testresult-db/mailtestresults.sh
@@ -26,4 +26,5 @@
   LEFT JOIN TESTRESULTS ON (TR_TESTRUN_FK=TU_ID)
 WHERE (DATE_SUB(CURDATE(), INTERVAL 2 DAY)<=DATE(TU_DATE)) AND TR_OK<>"+" AND TR_SKIP<>"+"
 GROUP BY TU_ID
+ORDER BY LAZVERSION, FPCVERSION, OS, CPU, WIDGETSET, TESTER, MACHINE, COMMENT, DATE;' | tee mysql-output  | $PROCTESTSUITEDIFF >> tests_mail
 /usr/sbin/sendmail -f ${MAILFROM} ${MAILTO} < tests_mail >/dev/null 2>&1
